<?php echo module_open(); ?>
<tr class="no-border">
	<td style="position: relative;">
        <div style="position: absolute; top: 10px; right: 25px;"><a href="<?php echo site_url('online/report') ?>" class="icon16 glyphicons stats" title="Báo cáo chi tiết"></a></div>
        <input type="hidden" class="tabId" value="<?php echo $GLOBALS['var']['mytab'] ?>" />
        <ul id="myTab" class="nav nav-tabs">
            <li class="hide640<?php echo $GLOBALS['var']['mytab'] == 0 ? ' active' : '' ?>" onclick="set_mytab($(this))"><a href="#tabs-0" data-toggle="tab">Tháng</a></li>
            <li class="hide640<?php echo $GLOBALS['var']['mytab'] == 1 ? ' active' : '' ?>" onclick="set_mytab($(this))"><a href="#tabs-1" data-toggle="tab">Năm</a></li>
            <li class="hide640<?php echo $GLOBALS['var']['mytab'] == 2 ? ' active' : '' ?>" onclick="set_mytab($(this))"><a href="#tabs-2" data-toggle="tab">Thành phố</a></li>
            <li class="hide640<?php echo $GLOBALS['var']['mytab'] == 3 ? ' active' : '' ?>" onclick="set_mytab($(this))"><a href="#tabs-3" data-toggle="tab">Quốc gia</a></li>
            <li class="hide640<?php echo $GLOBALS['var']['mytab'] == 4 ? ' active' : '' ?>" onclick="set_mytab($(this))"><a href="#tabs-4" data-toggle="tab">Nguồn</a></li>
            <li class="dropdown active show640">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="current-tab-name">Tháng</span> <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li <?php echo $GLOBALS['var']['mytab'] == 0 ? 'class="active" ' : '' ?>onclick="set_mytab($(this))"><a href="#tabs-0" data-toggle="tab">Tháng</a></li>
                    <li <?php echo $GLOBALS['var']['mytab'] == 1 ? 'class="active" ' : '' ?>onclick="set_mytab($(this))"><a href="#tabs-1" data-toggle="tab">Năm</a></li>
                    <li <?php echo $GLOBALS['var']['mytab'] == 2 ? 'class="active" ' : '' ?>onclick="set_mytab($(this))"><a href="#tabs-2" data-toggle="tab">Thành phố</a></li>
                    <li <?php echo $GLOBALS['var']['mytab'] == 3 ? 'class="active" ' : '' ?>onclick="set_mytab($(this))"><a href="#tabs-3" data-toggle="tab">Quốc gia</a></li>
                    <li <?php echo $GLOBALS['var']['mytab'] == 4 ? 'class="active" ' : '' ?>onclick="set_mytab($(this))"><a href="#tabs-4" data-toggle="tab">Nguồn</a></li>
                </ul>
            </li>
        </ul>
        <div id="myTabContent" class="tab-content">
            <div id="tabs-0" class="tab-pane<?php echo $GLOBALS['var']['mytab'] == 0 ? ' active' : '' ?>">
    			<table cellpadding="0" cellspacing="0" width="100%" border="0">
    				<tr>
                        <td class="fr">
                            <div class="chart_select">
                                <div><input type="button" onclick="visit_month(); visit_month_status();" value="Hiển thị" class="btn btn-info" /></div>
                                <div><?php echo form_dropdown('', $month_list, date('m'), 'class="visit_month select_month"'); ?></div>
                                <div class="lab">Tháng</div>
                                <div><?php echo form_dropdown('', $year_list, date('Y'), 'class="visit_month select_year"'); ?></div>
                                <div  class="lab">Năm</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
    					<td class="fr">
    						<div id="visit_month"></div>
                            <div id="visit_month_status"></div>
    					</td>
    				</tr>
    			</table>
    		</div>
            <div id="tabs-1" class="tab-pane<?php echo $GLOBALS['var']['mytab'] == 1 ? ' active' : '' ?>">
            	<table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                        <td class="fr">
                            <div class="chart_select">
                                <div><input type="button" onclick="visit_year(); visit_year_status()" value="Hiển thị" class="btn btn-info" /></div>
                                <div><?php echo form_dropdown('', $year_list, date('Y'), 'class="visit_year select_year"'); ?></div>
                                <div class="lab">Năm</div>
                            </div>
                        </td>
                    </tr>
    				<tr>
    					<td class="fr">
    						<div id="visit_year"></div>
                            <div id="visit_year_status"></div>
                        </td>
    				</tr>
    			</table>
            </div>
            <div id="tabs-2" class="tab-pane<?php echo $GLOBALS['var']['mytab'] == 2 ? ' active' : '' ?>">
    			<table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                        <td class="fr">
                            <div class="chart_select">
                                <div><input type="button" onclick="visit_city()" value="Hiển thị" class="btn btn-info" /></div>
                                <div><?php echo form_dropdown('', $month_list, date('m'), 'class="visit_city select_month"'); ?></div>
                                <div class="lab">Tháng</div>
                                <div><?php echo form_dropdown('', $year_list, date('Y'), 'class="visit_city select_year"'); ?></div>
                                <div class="lab">Năm</div>
                            </div>
                        </td>
                    </tr>
    				<tr>
    					<td class="fr">
    						<div id="visit_city"></div>
    					</td>
    				</tr>
                </table>
            </div>
            <div id="tabs-3" class="tab-pane<?php echo $GLOBALS['var']['mytab'] == 3 ? ' active' : '' ?>">
                <table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                        <td class="fr">
                            <div class="chart_select">
                                <div><input type="button" onclick="visit_country()" value="Hiển thị" class="btn btn-info" /></div>
                                <div><?php echo form_dropdown('', $month_list, date('m'), 'class="visit_country select_month"'); ?></div>
                                <div class="lab">Tháng</div>
                                <div><?php echo form_dropdown('', $year_list, date('Y'), 'class="visit_country select_year"'); ?></div>
                                <div class="lab">Năm</div>
                            </div>
                        </td>
                    </tr>
    				<tr>
    					<td class="fr">
    						<div id="visit_country"></div>
    					</td>
    				</tr>
    			</table>
    		</div>
            <div id="tabs-4" class="tab-pane<?php echo $GLOBALS['var']['mytab'] == 4 ? ' active' : '' ?>">
    			<table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                        <td class="fr">
                            <div class="chart_select">
                                <div><input type="button" onclick="visit_backlink()" value="Hiển thị" class="btn btn-info" /></div>
                                <div><?php echo form_dropdown('', $month_list, date('m'), 'class="visit_backlink select_month"'); ?></div>
                                <div class="lab">Tháng</div>
                                <div><?php echo form_dropdown('', $year_list, date('Y'), 'class="visit_backlink select_year"'); ?></div>
                                <div class="lab">Năm</div>
                            </div>
                        </td>
                    </tr>
    				<tr>
    					<td class="fr">
    						<div id="visit_backlink"></div>
    					</td>
    				</tr>
    			</table>
    		</div>
        </div>
	</td>
</tr>
<?php echo module_close(); ?>
<script src="js/jquery.hiticharts.js"></script>
<script src="js/highcharts/highcharts.js"></script>
<script src="js/highcharts/modules/data.js"></script>
<script src="js/highcharts/modules/exporting.js"></script>